package com.hk.demo.player;

import android.app.Application;

import com.hk.demo.player.http.DataManager;
import com.hk.demo.player.http.HttpClient;
import com.hk.player.Watermark;
import com.hk.player.utils.PlayerDataManager;
import com.zhoug.common.utils.LogUtils;
import com.zhoug.common.utils.RandomUtils;
import com.zhoug.router.RouterInit;

public class App  extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        RouterInit.init(this,true);
        DataManager.init(this);
        HttpClient.setDebug(false);
        DataManager.setBaseUrl("http://36.137.36.34:9005/");
        DataManager.setToken("BF68B8E799047FD13F2AA62B81B17F78");
        LogUtils.setDebug(true);
        Watermark watermark=new Watermark();
        watermark.setShowWatermark(true);
        watermark.setWaterMark(RandomUtils.randomChinese(7));
        PlayerDataManager.getInstance().setWatermark(watermark);
    }



}
